package apigateway.project.commen.constant;

public interface FilterConst {


    String ROUTER_FILTER_NAME = "router_filter";

    String ROUTER_FILTER_ID = "router_filter";

    int ROUTER_FILTER_ORDER = Integer.MAX_VALUE;

    /**
     * 流控过滤器的id和名字以及序号
     */
    String FLOW_FILTER_NAME = "flow_filter";

    String FLOW_FILTER_ID = "flow_filter";

    int FLOW_FILTER_ORDER = 25;

    /**
     * 针对具体实例的流控的id和名字以及序号
     */
    String FLOW_FILTER_NAME_INSTANCE = "flow_filter_instance";

    String FLOW_FILTER_ID_INSTANCE = "flow_filter_instance";

    int FLOW_FILTER_ORDER_INSTANCE = 100;

    /**
     * 负载均衡过滤器
     */
    String LOAD_BALANCE_FILTER_ID = "load_balance_filter";
    String LOAD_BALANCE_FILTER_NAME = "load_balance_filter";

    String LOAD_BALANCE_KEY = "load_balance";
    String LOAD_BALANCE_STRATEGY_RANDOM = "Random";
    String LOAD_BALANCE_STRATEGY_ROUND_ROBIN = "RoundRobin";
    String LOAD_BALANCE_STRATEGY_IPHASH = "IPHash";
    String LOAD_BALANCE_STRATEGY_CONSISTENTHASH = "ConsistentHash";
    String LOAD_BALANCE_STRATEGY_WEIGHT = "Weight";
}
